package com.stedu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 报修表
 * @TableName employee
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Repair {
    /**
     * 主键
     */
    private Integer rid;

    /**
     * 业主姓名
     */
    private Integer oid;

    /**
     *维修内容
     */
    private String rtask;

    /**
     * 报修位置
     */
    private String rlocation;

    /**
     * 报修时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rtime;

    /**
     * 维修状态(1.未维修 2.已维修)
     */
    private Integer rcompleted;
    private Owner owner;
    //维修人员
    private List<RepairPersonnel> personnels;

}